#ifndef USER_H
#define USER_H

#include <iostream>
#include <string>
#include "server.h"

class User
{
public:
    User(tcp_server & inServer ): server(inServer) {} ;
    
    void SetWriteBuffer ( std::string & inWriteBuffer )
    {
        writeBuffer =  inWriteBuffer ;
    }

    void outToAgent ( ) ;
    static void RxMsgWrapper ( void * pObject, const char * pBuffer, size_t size ) ;
    void RxMsg ( const char * pBuffer, size_t size ) ;

private:
    std::string readBuffer ;
    std::string writeBuffer ;
    tcp_server &server ;
} ;

#endif
